package Week3.num.week3Test1.opp02;

public class ColaEmployee {
    /**
     * 员工的姓名
     */
    private String name;
    /**
     * 员工生日的月份
     */
    private int month;

    /**
     * 类ColaEmployee的空参构造
     */
    public ColaEmployee() {

    }

    /**
     * 全参构造
     */
    public ColaEmployee(String name, int month) {
        this.month = month;
        this.name = name;
    }

    /**
     * get和set方法
     */
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {

        this.month = month;
    }

    public double getSalary(int month){
        if(this.month==month){
            return 0.0+100;
        }
        return 0.0;
    }
}
